From: Wesley Gimenes Date: Tue, 16 Sep 2025 00:09:28 +0000 (-0300) Subject: port-mirroring: remove package X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=c0d7a7b0816487904fb62b66269454afce0bc6f4;p=feed%2Fpackages.git port-mirroring: remove package - The project was archived on Mar 22, 2024. - The maintainer of the package and the upstream maintainer are the same person, who has expressed their intention not to maintain the package/project. See the quote[1] below: > I haven't been maintaining this and I don't plan to spend any more > time on it. Happy to hand it off, if someone is willing to take it on. - The latest significant commit for the package (no treewide changes) is commit 2c71d5bcd4e09b926d63d0fbba39534fd2c587f7 from Mar 29, 2020. - The latest upstream commit[2] is from Mar 22, 2024, but it is a documentation or cosmetic change. After this, the latest commits[3] are from Apr 6, 2019. [1]: https://github.com/openwrt/packages/pull/27398#issuecomment-3250671659 [2]: https://github.com/mmaraya/port-mirroring/commit/776fe2bb48333a0414fde609b1c63b11d298246b [3]: https://github.com/mmaraya/port-mirroring/commit/dcce6aeb0a977090ebd4a3c80a33df7715241f21 Closes: https://github.com/openwrt/packages/issues/27394 Signed-off-by: Wesley Gimenes --- diff --git a/net/port-mirroring/Makefile b/net/port-mirroring/Makefile deleted file mode 100644 index d803137a3e..0000000000 --- a/net/port-mirroring/Makefile +++ /dev/null @@ -1,48 +0,0 @@ -# -# Copyright (c) 2019 OpenWrt.org -# -# This is free software, licensed under the BSD 2-Clause License. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=port-mirroring -PKG_VERSION:=1.4.4 -PKG_RELEASE:=4 - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://codeload.github.com/mmaraya/port-mirroring/tar.gz/v$(PKG_VERSION)? -PKG_HASH:=9fb259d24cee4fe1bed1a51c49e52a8eb05b692ba1b5debb75fdf54957cc8ed1 - -PKG_MAINTAINER:=Mike Maraya -PKG_LICENSE:=BSD-2-Clause -PKG_LICENSE_FILES:=LICENSE - -PKG_FIXUP:=autoreconf - -include $(INCLUDE_DIR)/package.mk - -define Package/port-mirroring - SECTION:=net - CATEGORY:=Network - DEPENDS:=+libpcap +libpthread - TITLE:=Copy network packets with optional support for TaZmen Sniffer Protocol (TZSP) - URL:=https://github.com/mmaraya/port-mirroring - MENU:=1 -endef - -define Package/port-mirroring/conffiles -/etc/config/port-mirroring -endef - -define Package/port-mirroring/install - $(INSTALL_DIR) $(1)/usr/sbin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/port-mirroring $(1)/usr/sbin/ - $(INSTALL_DIR) $(1)/etc/config - $(INSTALL_CONF) $(PKG_BUILD_DIR)/openwrt/port-mirroring.conf $(1)/etc/config/port-mirroring - $(INSTALL_DIR) $(1)/etc/init.d - $(INSTALL_BIN) $(PKG_BUILD_DIR)/openwrt/port-mirroringd $(1)/etc/init.d/port_mirroring -endef - -$(eval $(call BuildPackage,port-mirroring)) - diff --git a/net/port-mirroring/patches/010-snprintf-to-strncpy.patch b/net/port-mirroring/patches/010-snprintf-to-strncpy.patch deleted file mode 100644 index d28c2e23a0..0000000000 --- a/net/port-mirroring/patches/010-snprintf-to-strncpy.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- a/src/main.c -+++ b/src/main.c -@@ -90,7 +90,7 @@ int loadCfg(const char *fpath) - } - else - { -- snprintf(cfg.dst_if, IFNAMSIZ, "%s", value); -+ strncpy(cfg.dst_if, value, IFNAMSIZ); - cfg.flags |= PM_DST_IF; - } - } -@@ -104,7 +104,7 @@ int loadCfg(const char *fpath) - } - else if (strcmp(option, "filter") == 0) - { -- snprintf(cfg.pfe, PFE_MAX, "%s", value); -+ strncpy(cfg.pfe, value, PFE_MAX); - } - else if (strcmp(option, "promiscuous") == 0) - { diff --git a/net/port-mirroring/patches/020-time.patch b/net/port-mirroring/patches/020-time.patch deleted file mode 100644 index 63350fc9e0..0000000000 --- a/net/port-mirroring/patches/020-time.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- a/src/main.c -+++ b/src/main.c -@@ -252,7 +252,7 @@ void packet_handler_ex(const struct pcap - if (handle == NULL || pcap_sendpacket(handle, pkt_data, header->len) != 0) - { - //error detected -- long nowTime; -+ time_t nowTime; - time(&nowTime); - if (nowTime - cfg.init_time > ERRTIMEOUT && header->len < 1500) - { -@@ -282,7 +282,7 @@ void packet_handler_ex(const struct pcap - if (handle == NULL || pcap_sendpacket(handle, buf, header->len) != 0) - { - //error detected -- long nowTime; -+ time_t nowTime; - time(&nowTime); - if (nowTime - cfg.init_time > ERRTIMEOUT && header->len < 1500) - {